import { createAction, props } from '@ngrx/store';
import { PlayMode } from '../entity';
import { Song } from 'src/app/routes/entity';

export const setPlaying = createAction('[Music Player] Playing', props<{playing: boolean}>());

export const setPlayMode = createAction('[Music Player] PlayMode', props<{playMode: PlayMode}>());

export const setPlayList = createAction('[Music Player] PlayList', props<{playList: Song[]}>());

export const setSongList = createAction('[Music Player] SongList', props<{songList: Song[]}>());

export const setCurrentIndex = createAction('[Music Player] CurrentIndex', props<{currentIndex: number}>());
